package nicg.st.service.evaldataenterservice;

public class Calculation01 implements Calculation {
    private double n;

    private double m;
    private double l;
    private double h;

    @Override
    public double calculate() {

        double temp = (n / (m+zeroBuffer))*100;

        if(temp <= l){
            return 100;
        }else if(temp >= h){
            return 0;
        }else{
            return (1 - n/(m+zeroBuffer))*100;
        }
    }

    public double getN() {
        return n;
    }

    public void setN(double n) {
        this.n = n;
    }

    public double getM() {
        return m;
    }

    public void setM(double m) {
        this.m = m;
    }

    public double getL() {
        return l;
    }

    public void setL(double l) {
        this.l = l;
    }

    public double getH() {
        return h;
    }

    public void setH(double h) {
        this.h = h;
    }

}
